<div class="sidebar s2">
	<a title="Expand Sidebar" class="sidebar-toggle"><i class="fa icon-sidebar-toggle"></i></a>
	<div class="sidebar-content">
		<!-- <div class="sidebar-more sidebar-top group">
			<p>More</p>
		</div> -->
		<div class="sidebar-top group">
			<p>Tư vấn Pháp Luật</p>
		</div>
		<div class="widget widget_alx_posts">
			<ul class="alx-tab group">
				<?php
				foreach ($legelAdvices as $row) :
				?>
				<li>
					<div class="advice-left"><i class="fa fa-hand-o-right"></i>&nbsp; <?php echo $row['LegelAdvices']['name'];?></div>
					<div class="advice-right">
						<a class="skype" href="skype:<?php echo $row['LegelAdvices']['support_skype'];?>?chat"><img border="0" src="http://mystatus.skype.com/mediumicon/<?php echo $row['LegelAdvices']['support_skype'];?>" alt=""></a>
						<a class="yahoo" href="ymsgr:sendIM?<?php echo $row['LegelAdvices']['support_yahoo'];?>"><img border="0" alt="Chat Yahoo" src="http://opi.yahoo.com/online?u=<?php echo $row['LegelAdvices']['support_yahoo'];?>&m=g&t=1"></a>
					</div>
				</li>
				<?php
				endforeach;
				?>
			</ul>
		</div>
		<!-- module2 -->
		<div class="sidebar-top group">
			<p>Tin tức mới cập nhật</p>
		</div>
		<div id="alxposts-2" class="widget widget_alx_posts">
			<ul class="alx-posts group thumbs-enabled">
				<?php
				foreach ($newsUpdate as $rows):
					$linkDetail = $this->Html->url(
							array(
								'controller' => 'news',
								'action' => 'detail',
								'news_id' => $rows['News']['id'],
								'news_rewrite' => $rows['News']['new_rewrite'],
								'cat_rewrite' => $rows['Category']['cat_rewrite'],
								'ext' => 'html',
							)
						);

					$linkCategory = $this->Html->url(
							array(
								'controller' => 'categorys',
								'action' => 'index',
								'cat_id' => $rows['News']['category_id'],
								'cat_rewrite' => $rows['Category']['cat_rewrite'],
								'cat_parent_rewrite' => $rows['Category']['cat_parent_rewrite'],
							)
					);
				?>
				<li>
					<div class="post-item-thumbnail">
						<a title="Go Outside" href="<?php echo $linkDetail;?>">
							<?php echo $this->Html->image('/admin/uploads/' . $rows['News']['new_picture'], array('alt' => $rows['News']['new_picture'], 'fullBase' => false, 'class' => 'attachment-thumb-medium wp-post-image'));?>
						</a>
					</div>

					<div class="post-item-inner group">
						<p class="post-item-category"><a rel="category tag" href="<?php echo $linkCategory;?>"><?php echo $rows['Category']['cat_name'];?></a></p>
						<p class="post-item-title">
							<a title="Go Outside" rel="bookmark" href="<?php echo $linkDetail;?>"><?php echo $rows['News']['name'];?></a>
						</p>
						<p class="post-item-date"><?php echo date('d/m/Y H:i:s', $rows['News']['last_update']);?></p>
					</div>
				</li>
				<?php
				endforeach;
				?>
			</ul>
		</div>

		<!-- module3 -->
		<div class="sidebar-top group">
			<p>Hỗ trợ trực tuyến</p>
		</div>
		<div id="alxposts-3" class="widget widget_alx_tabs">
			<ul class="alx-tab group avatars-enabled">
				<?php foreach ($support as $rows):?>
				<li>
					<div class="tab-item-avatar">
						<a href="#">
							<img class="avatar avatar-96 photo" src="/img/logo_48x22.jpg" alt="">
						</a>
					</div>
					<div class="tab-item-inner group">
						<div class="tab-item-name"><?php echo $rows['support']['name']?>: <?php echo $rows['support']['hotline']?></div>
						<div class="tab-item-comment">
							<a class="yahoo" href="ymsgr:sendIM?<?php echo $rows['support']['yahoo']?>"><img width="64" height="16" border="0" align="middle" alt="Chat Yahoo" src="http://opi.yahoo.com/online?u=<?php echo $rows['support']['yahoo']?>&m=g&t=1"></a>
							<a class="skype" href="skype:<?php echo $rows['support']['skype']?>?chat"><img width="26" height="26" border="0" align="middle" src="http://mystatus.skype.com/mediumicon/<?php echo $rows['support']['skype']?>" alt=""></a>
						</div>
					</div>
				</li>
				<?php endforeach;?>
			</ul>
		</div>
		<!-- module4 -->
		<div class="sidebar-top group">
			<p>Liên kết website</p>
		</div>
		<div id="alxposts-3" class="widget widget_alx_posts">
			<ul id="scroller" class="alx-posts group thumbs-enabled">
				<?php foreach ($allBanner['right'] as $banner):?>
				<li>
					<div class="post-item-thumbnail">
						<a href="<?php echo $banner['ban_link'];?>">
							<?php echo $this->Html->image('/admin/uploads/' . $banner['ban_picture'], array('alt' => $banner['ban_name'], 'fullBase' => false));?>
						</a>
					</div>
				</li>
				<?php endforeach;?>
			</ul>
		</div>
	</div>
</div>